@import "mixin";

@mixin confirm-btn {
  width: 100%;
  height: rem(49px);
  line-height: rem(49px);
  text-align: center;
  background-color: #dc3838;
  font-size: rem(18px);
  color: #ffffff;
}

body {
  padding-bottom: rem(45px);
}

.banner {
  margin-bottom: rem(10px);
  padding-top: rem(20px);
  width: 100%;
  height: rem(200px);
  background: linear-gradient(39deg, #f14343, #ff5b35);
  >.content-wrapper {
    margin: 0 auto;
    width: rem(343px);
    height: rem(160px);
    background-color: #fff;
    border-radius: rem(3px);
    >a {
      position: relative;
      padding: 0 rem(16px);
      display: block;
      width: 100%;
      height: 100%;
      >.content-top {
        width: 100%;
        height: rem(50px);
        font-size: 0;
        >.logo-wrapper {
          float: left;
          position: relative;
          display: inline-block;
          width: rem(110px);
          height: 100%;
          >img {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
          }
        }
        >.tag-wrapper {
          float: left;
          display: inline-block;
          padding-top: rem(15px);
          height: 100%;
          >.tag {
            margin-left: rem(4px);
            display: inline-block;
            padding: 0 rem(2px);
            border: rem(1px) solid #dc3838;
            border-radius: rem(2px);
            line-height: rem(16px);
            font-size: rem(12px);
            color: #dc3838;
          }
        }
      }
      >.content-middle {
        width: 100%;
        height: rem(60px);
        text-align: center;
        >h3 {
          font-weight: bold;
          font-size: rem(20px);
          color: #f14343;
        }
        >p {
          margin: rem(8px) 0;
          font-size: rem(12px);
          color: #999999;
        }
      }
      >.content-bottom {
        width: 100%;
        >.info-wrapper {
          display: flex;
          width: 100%;
          text-align: center;
          >.profit-wrapper {
            flex: 1;
            >.data {
              line-height: rem(24px);
              font-size: rem(18px);
              color: #333333;
            }
            >.item-desc {
              line-height: rem(18px);
              font-size: rem(12px);
              color: #999999;
            }
          }
          >.money-wrapper {
            flex: 1;
            border-left: rem(1px) solid #e5e5e5;
            >.data {
              line-height: rem(24px);
              font-size: rem(18px);
              color: #333333;
            }
            >.item-desc {
              line-height: rem(18px);
              font-size: rem(12px);
              color: #999999;
            }
          }
        }
      }
      >.plat-sign1 {
        position: absolute;
        top: 0;
        right: 0;
        display: inline-block;
        width: rem(50px);
        height: rem(50px);
        transform: rotate(90deg);
        @include bg-image("../images/m-index-platform-tag1");
      }
      >.plat-sign2 {
        position: absolute;
        top: 0;
        right: 0;
        display: inline-block;
        width: rem(50px);
        height: rem(50px);
        transform: rotate(90deg);
        @include bg-image("../images/m-index-platform-tag2");
      }
    }
  }
}

.my-platform {
  width: 100%;
  >.my-platform-header {
    padding: 0 rem(16px);
    width: 100%;
    height: rem(50px);
    background-color: #fff;
    @include border-bottom-1px(#e5e5e5);
    @include border-top-1px(#e5e5e5);
    >h4 {
      display: inline-block;
      padding-left: rem(9px);
      border-left: rem(4px) solid #dc3838;
      height: rem(16px);
      line-height: rem(16px);
      font-weight: bold;
      font-size: rem(16px);
      color: #333333;
      >span {
        padding-left: rem(12px);
        font-size: rem(12px);
        color: #999999;
      }
    }
  }
  >.my-platform-content {
    >.my-platform-wrapper {
      >.my-platform-item {
        width: 100%;
        height: rem(84px);
        padding: 0 rem(16px);
        background-color: #fff;
        @include border-bottom-1px(#e5e5e5);
        >a {
          display: block;
          width: 100%;
          height: 100%;
          >.item-left {
            float: left;
            display: inline-block;
            position: relative;
            padding-right: rem(16px);
            padding-top: rem(24px);
            text-align: center;
            width: rem(127px);
            font-size: 0;
            >.plat-tag-wrapper {
              >.plat-tag {
                display: inline-block;
                padding: rem(3px) rem(6px);
                background-color: #0084ff;
                border-radius: rem(10px);
                font-size: rem(10px);
                color: #ffffff;
              }
            }
            >.tag-msg {
              margin-top: rem(6px);
              >p {
                line-height: rem(18px);
                font-size: rem(12px);
                color: #333333;
              }
            }
            &:after {
              content: '';
              position: absolute;
              top: rem(24px);
              right: 0;
              width: rem(1px);
              height: rem(36px);
              background-color: #e5e5e5;
            }
          }
          >.item-center {
            float: left;
            display: inline-block;
            padding-left: rem(16px);
            >.item-info-wrapper {
              padding-top: rem(16px);
              >li {
                display: flex;
                line-height: rem(18px);
                >.left {
                  flex: 0 0 rem(50px);
                  width: rem(50px);
                  font-size: rem(12px);
                  color: #666666;
                }
                >.right {
                  padding-left: rem(10px);
                  flex: 1;
                  font-size: rem(12px);
                  color: #333333;
                  &.dc3838 {
                    color: #dc3838;
                  }
                }
              }
            }
          }
          >.item-right {
            float: right;
            height: 100%;
            >.btn-wrapper {
              height: 100%;
              line-height: rem(60px);
              >.plat-btn {
                display: inline-block;
                padding: rem(6px) rem(10px);
                background-color: #dc3838;
                line-height: rem(12px);
                border-radius: rem(24px);
                font-size: rem(12px);
                color: #ffffff;
              }
            }
          }
        }
      }
    }
  }
}

.plat-tip-wrapper {
  width: 100%;
  background-color: #fff;
  >.tip {
    padding: 0 rem(16px);
    line-height: rem(44px);
    font-size: rem(12px);
    color: #333333;
    @include border-bottom-1px(#e5e5e5);
  }
}


.platform-detail {
  @include border-bottom-1px(#e5e5e5);
  >.platform-detail-header {
    display: flex;
    width: 100%;
    height: rem(35px);
    line-height: rem(35px);
    background-color: #fff;
    @include border-bottom-1px(#e5e5e5);
    >li {
      flex: 1;
      text-align: center;
      font-size: rem(13px);
      color: #999999;
      &.active {
        position: relative;
        color: #dc3838;
        &:before {
          content: '';
          position: absolute;
          bottom: 0;
          left: 50%;
          margin-left: rem(-20px);
          width: rem(40px);
          height: rem(1px);
          background-color: #dc3838;
        }
      }
    }
  }
  >.platform-detail-body {
    >.platform-background {
      padding: 0 0 0 rem(16px);
      background-color: #fff;
      >.background-item {
        padding: 0 rem(16px) 0 0;
        width: 100%;
        min-height: rem(44px);
        line-height: rem(44px);
        @include border-bottom-1px(#e5e5e5);
        >.left {
          float: left;
          display: inline-block;
          font-size: rem(16px);
          color: #333333;
        }
        >.right {
          float: right;
          display: inline-block;
          font-size: rem(16px);
          color: #999999;
          >.arrow-wrapper {
            float: right;
            display: inline-block;
            vertical-align: top;
            padding-top: rem(6px);
            height: rem(24px);
            line-height: rem(24px);
            >.arrow-right {
              display: inline-block;
              vertical-align: text-bottom;
              width: rem(8px);
              height: rem(12.5px);
              @include bg-image('../images/arrow-right');
              background-repeat: no-repeat;
              -webkit-background-size: 100% 100%;
              background-size: 100% 100%;
            }
          }
        }
      }
    }
    >.platform-partner {
      width: 100%;
      background-color: #fff;
      font-size: 0;
      >.partner-item {
        padding: rem(10px) 0;
        @include border-bottom-1px(#e5e5e5);
        >.img-wrapper {
          width: 100%;
          >img {
            width: 100%;
          }
        }
        >.leader-wrapper {
          display: flex;
          padding: 0 rem(16px);
          >.left {
            flex: 0 0 rem(70px);
            width: rem(70px);
          }
          >.right {
            flex: 1;
            padding: 0 rem(10px);
            >h5 {
              margin-bottom: rem(10px);
              font-size: rem(16px);
              color: #333333;
            }
            >p {
              line-height: rem(16px);
              font-size: rem(12px);
              color: #666666;
            }
          }
        }
      }
    }
    >.platform-type {
      padding: rem(10px) rem(16px);
      width: 100%;
      background-color: #fff;
      @include border-bottom-1px(#e5e5e5);
      >.type-item {
        margin-bottom: rem(10px);
        padding: rem(10px);
        background-color: #f5fafe;
        >h5 {
          margin-bottom: rem(10px);
          font-size: rem(16px);
          color: #333333;
        }
        >p {
          line-height: rem(16px);
          font-size: rem(12px);
          color: #999999;
        }
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
  >.platform-detail-bottom {
    margin-bottom: rem(10px);
    padding: 0 0 0 rem(16px);
    background-color: #fff;
    >.bottom-item {
      padding: 0 rem(16px) 0 0;
      width: 100%;
      min-height: rem(44px);
      line-height: rem(44px);
      @include border-bottom-1px(#e5e5e5);
      >.left {
        float: left;
        display: inline-block;
        font-size: rem(16px);
        color: #333333;
      }
      >.right {
        float: right;
        display: inline-block;
        font-size: rem(16px);
        color: #999999;
        >.arrow-wrapper {
          float: right;
          display: inline-block;
          vertical-align: top;
          padding-top: rem(6px);
          height: rem(24px);
          line-height: rem(24px);
          >.arrow-right {
            display: inline-block;
            vertical-align: text-bottom;
            width: rem(8px);
            height: rem(12.5px);
            @include bg-image('../images/arrow-right');
            background-repeat: no-repeat;
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
          }
        }
      }
      >.title {
        font-size: rem(16px);
        color: #333333;
        >a {
          display: block;
          width: 100%;
          height: 100%;
          font-size: rem(16px);
          color: #333333;
          >.icon-arrow {
            float: right;
            margin-top: rem(16px);
            display: inline-block;
            width: rem(8px);
            height: rem(12.5px);
            @include bg-image('../images/arrow-right');
            background-repeat: no-repeat;
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
          }
        }
      }
      >.img-wrapper {
        width: 100%;
        height: rem(55px);
        padding-bottom: rem(10px);
        overflow: hidden;
        white-space: nowrap;
        font-size: 0;
        >.plat-ceping-img-wrapper {
          height: rem(45px);
          >.img-item {
            box-sizing: border-box;
            float: left;
            margin-right: rem(7px);
            display: inline-block;
            width: rem(87px);
            height: rem(45px);
            overflow: hidden;
            >a {
              display: block;
              width: 100%;
              height: 100%;
              >img {
                width: 100%;
                height: 100%;
              }
            }
          }
        }
      }
      >.text-wrapper {
        padding-bottom: rem(10px);
        >p {
          line-height: rem(20px);
          font-size: rem(12px);
          color: #333333;
        }
      }
    }
  }
}

.return {
  margin-bottom: rem(15px);
  background-color: #fff;
  >.return-header {
    width: 100%;
    height: rem(45px);
    line-height: rem(45px);
    >h3 {
      padding-left: rem(16px);
      font-size: rem(16px);
      color: #333333;
    }
  }
  >.return-content {
    width: 100%;
    >img {
      width: 100%;
    }
  }
}


.btn-wrapper {
  text-align: center;
  font-size: 0;
  >a {
    display: inline-block;
    @include confirm-btn
  }
  >p {
    margin-top: rem(20px);
    font-size: rem(13px);
    color: #333333;
  }
}

.bottom-btn-wrapper {
  position: fixed;
  width: 100%;
  bottom: 0;
  text-align: center;
  font-size: 0;
  >a {
    display: inline-block;
    @include confirm-btn
  }
  >p {
    margin-top: rem(20px);
    font-size: rem(13px);
    color: #333333;
  }
}

.platform-layer {
  position: relative;
  padding-top: rem(20px);
  width: rem(240px);
  height: rem(190px);
  background-color: #fff;
  border-radius: rem(3px);
  overflow: hidden;
  text-align: center;
  >h5 {
    line-height: rem(18px);
    font-size: rem(12px);
  }
  >.plat-logo {
    position: relative;
    width: 100%;
    height: rem(60px);
    >img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
    }
  }
  >.text-wrapper {
    padding: 0 rem(30px);
  }
  >.bottom-wrapper {
    padding-top: rem(3px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: rem(40px);
    background-color: #dc3838;
    box-sizing: border-box;
    >p {
      line-height: rem(16px);
      font-size: rem(12px);
      color: #ffffff;
    }
  }
  >.btn-wrapper {
    margin-top: rem(16px);
    padding: 0 rem(30px);
    >a {
      display: inline-block;
      width: 100%;
      height: rem(39px);
      line-height: rem(39px);
      text-align: center;
      background-color: #dc3838;
      border-radius: rem(5px);
      color: #ffffff;
      font-size: rem(16px);
    }
  }
  &.unjoint-platform {
    height: rem(190px);
  }
  &.joint-platform {
    height: rem(160px);
  }
  &.not-a-menber {
    height: rem(215px);
  }
}